package com.example.apigateway.repository;

import com.example.apigateway.dataobject.KabaoUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface KabaoUserRepository {
    @Select("select uid,username,password,phone" +
            ",token,timeout,status,create_time as createTime,update_time as updateTime from kabao_user where token = #{token}")
    public KabaoUser findUserByToken(String token);
}
